{* smarty *}
{extends file='include/base_with_menu.tpl'}

{block name="external_javascript"}
<script type="text/javascript" src="/scripts/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/scripts/oa_calendar.js"></script>
{/block}

{block name="javascript"}
<script type="text/javascript">
(function($)
{
    $(function()
    {
        $('#begin_date, #end_date').datepicker();
    }
    );
}
)(jQuery);
</script>
{/block}

{block name='content'}
<h3 class="blockTitle">筛选条件</h3>
<div class="layout">
<form id="log_form" method="get" action="/perm/log/change/list">
    <table width="100%" class="tbLayout01" cellspacing="0" cellpadding="0">
        <tr>
            <td width="100" class="textRight">工号：</td>
            <td class="textLeft">
                <input type="text" class="txt01" size=12 name="uid" value="{$safe_vars.uid|default:''}" />
            </td>
        </tr>
        <tr>
            <td width="100" class="textRight">用户名：</td>
            <td class="textLeft">
                <input type="text" class="txt01" size=12 name="username" value="{$safe_vars.username|default:''|escape}" />
            </td>
        </tr>
        <tr>
            <td width="100" class="textRight">查询日期：</td>
            <td class="textLeft">
                <input type="text" class="txt01" id="begin_date" name="begin_date" value="{$safe_vars.begin_date|default:''}" />&nbsp;~&nbsp;
                <input type="text" class="txt01" id="end_date" name="end_date" value="{$safe_vars.end_date|default:''}" />
            </td>
        </tr>
        <tr>
            <td class="textRight">&nbsp;</td>
            <td class="textLeft">
                <input type="submit" value="查 询" />
            </td>
        </tr>
    </table>
</form>
</div>
<h3 class="blockTitle">查询结果</h3>
<div class="layout">
<table class="tbData01" width="100%" cellspacing="0" cellpadding="0">
    <tr>
        <th style="width:auto;">工号</th>
        <th style="width:auto;">用户名</th>
        <th style="width:auto;">姓名</th>
        <th style="width:auto;">变更时间</th>
        <th style="width:auto;">变更操作</th>
        <th style="width:40%;">变更明细</th>
    </tr>
    {foreach $log_info as $info}
    <tr {if $info@index is odd}class="even"{/if}>
        <td>{$info.id|ytuid}</td>
        <td>{$info.username|escape}</td>
        <td>{$info.name|escape}</td>
        <td>{$info.dateline|date_format:"%Y-%m-%d %H:%M:%S"}</td>
        <td>{$info.cf_name|escape}</td>
        <td>{$info.message|escape}</td>
    </tr>
    {/foreach}
</table>
</div>
{include file='include/page.tpl'} 
{call name=pagination form_id="log_form" page=$pagination.page total=$pagination.total}
{/block}
